package com.ruoyi.system.controller;


import com.ruoyi.system.common.Result;
import com.ruoyi.system.entity.Advice;
import com.ruoyi.system.entity.Goods;
import com.ruoyi.system.service.service.AdviceService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/advice")
public class AdviceController {

    @Resource
    private AdviceService adviceService;


    @PostMapping("/add")
    public Result add(@RequestBody Advice advice) {
        adviceService.add(advice);
        return Result.success();
    }
}
